﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TPCN.DAL
{
    public class DanhMucHangObj
    {
        private string _DanhmucHangID;

        public string DanhmucHangID
        {
            get { return _DanhmucHangID; }
            set { _DanhmucHangID = value; }
        }
        private string _HangID;

        public string HangID
        {
            get { return _HangID; }
            set { _HangID = value; }
        }
        private string _DanhmucID;

        public string DanhmucID
        {
            get { return _DanhmucID; }
            set { _DanhmucID = value; }
        }
        public DanhMucHangObj SetValuesFromDataReader(IDataReader reader)
        {
            DanhMucHangObj obj = new DanhMucHangObj();
            obj.DanhmucHangID = (reader["DanhmucHangID"] is DBNull) ? String.Empty : reader["DanhmucHangID"].ToString();
            obj.HangID = (reader["HangID"] is DBNull) ? String.Empty : reader["HangID"].ToString();
            obj.DanhmucID = (reader["DanhmucID"] is DBNull) ? String.Empty : reader["DanhmucID"].ToString();
            return obj;
        }
    }
}
